/**
 * 
 */
package fpt.pits.blo;

import fpt.pits.dao.LoginInfoDAO;

/**
 * @author yoyosakura
 *
 */
public class LoginInfoBLO {
    /**
     * loginDAO property
     */
    private LoginInfoDAO loginDAO = new LoginInfoDAO();
    /**
     * check wheter user is valid
     * @param username
     * @param password
     * @return
     */
    public boolean isValidUser(String username, String password) {
        if (loginDAO.get(username, password) != null) {
            return true;
        } else {
            return false;
        }
    }
}
